<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            width: 800px;
            height: 200px;
            /* 消除间隙文字为0，空格为0 */
            font-size: 0;
        }
        .left{
            display: inline-block;
            background: red;
            width: 200px;
            height: 200px;
            font-size: 20px;
        }
        .right{
            display: inline-block;
            background: blue;
            width: 500px;
            height: 200px;
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">left</div>
        <div class="right">right</div>
    </div>
</body>
</html>